package com.esm.serviceimpl;

import com.esm.dao.SignDao;
import com.esm.daoimpl.SignDaoImpl;
import com.esm.service.SignService;

import net.sf.json.JSONArray;

/**
 * SignServiceImpl
 * 签到服务层实现类
 * @author 魏长均
 *
 */
public class SignServiceImpl implements SignService
{
	SignDao sdao = new SignDaoImpl();
	@Override
	public JSONArray getEmpSign(String selectYear,int page,int pageSize) 
	{
		return sdao.findEmpSign(selectYear, page, pageSize);
	}
	@Override
	public JSONArray getYrMthEmpSign(String selectYear, String selectMonth, int page, int pageSize) 
	{
		return sdao.findYrMthEmpSign(selectYear, selectMonth, page, pageSize);
	}
	@Override
	public JSONArray getYrMthDayEmpSign(String selectYear, String selectMonth, String selectDay, int page,
			int pageSize) 
	{
		return sdao.findYrMthDayEmpSign(selectYear, selectMonth, selectDay, page, pageSize);
	}
	
	@Override
	public int getEmpSignTotalRows(String selectYear) 
	{
		return sdao.findEmpSignTotalRows(selectYear);
	}
	@Override
	public int getYrMthSignTotalRows(String selectYear, String selectMonth) 
	{
		return sdao.findYrMthSignTotalRows(selectYear, selectMonth);
	}
	@Override
	public int getYrMthDaySignTotalRows(String selectYear, String selectMonth, String selectDay) 
	{
		return sdao.findYrMthDaySignTotalRows(selectYear, selectMonth, selectDay);
	}
	@Override
	public JSONArray getDeptSign(int dep_id, String selectYear, int page, int pageSize) 
	{
		return sdao.findYrDeptSign(dep_id, selectYear, page, pageSize);
	}
	@Override
	public JSONArray getYrMthDeptSign(int dep_id, String selectYear, String selectMonth, int page, int pageSize) 
	{
		return sdao.findYrMthDeptSign(dep_id, selectYear, selectMonth, page, pageSize);
	}
	@Override
	public JSONArray getYrMthDayDeptSign(int dep_id, String selectYear, String selectMonth, String selectDay, int page,
			int pageSize) 
	{
		return sdao.findEmpSign(selectYear, page, pageSize);
	}
	@Override
	public int getDeptYrSignTotalRows(int dep_id, String selectYear) 
	{
		return sdao.findDeptYrSignTotalRows(dep_id, selectYear);
	}
	@Override
	public int getDeptYrMthSignTotalRows(int dep_id, String selectYear, String selectMonth) 
	{
		return sdao.findDeptYrMthSignTotalRows(dep_id, selectYear, selectMonth);
	}
	@Override
	public int getDeptYrMthDaySignTotalRows(int dep_id, String selectYear, String selectMonth, String selectDay) 
	{
		return sdao.findDeptYrMthDaySignTotalRows(dep_id, selectYear, selectMonth, selectDay);
	}
	@Override
	public JSONArray getYrEmppSign(int uid, String selectYear, int page, int pageSize) 
	{
		return sdao.findYrEmpSign(uid, selectYear, page, pageSize);
	}
	@Override
	public JSONArray getYrMthEmppSign(int uid, String selectYear, String selectMonth, int page, int pageSize) 
	{
		return sdao.fingYrMthEmpSign(uid, selectYear, selectMonth, page, pageSize);
	}
	@Override
	public JSONArray getYrMthDayEmppSign(int uid, String selectYear, String selectMonth, String selectDay, int page,
			int pageSize) 
	{
		return sdao.findYrMthDayEmpSign(uid, selectYear, selectMonth, selectDay, page, pageSize);
	}
	@Override
	public int getEmppYrSignTotalRows(int uid, String selectYear) 
	{
		return sdao.findEmpYrSignTotalRows(uid, selectYear);
	}
	@Override
	public int getEmppYrMthSignTotalRows(int uid, String selectYear, String selectMonth) 
	{
		return sdao.findEmpYrMthSignTotalRows(uid, selectYear, selectMonth);
	}
	@Override
	public int getEmppYrMthDaySignTotalRows(int uid, String selectYear, String selectMonth, String selectDay) 
	{
		return sdao.findEmpYrMthDaySignTotalRows(uid, selectYear, selectMonth, selectDay);
	}

}
